package com.design.pattern.structural.decorator;

/**
 * @Author hanyuanlai
 * @Date 2022/7/14
 */
public class Student extends Person{
    private int order;

    public Student(int order) {
        super.order = order;
    }

    @Override
    void chuanyifu() {
        System.out.println("出门");
    }

    @Override
    void eat() {
        System.out.println("吃完了");
    }
}
